<?php
namespace app\index\controller;
class News extends Common
{
    /**
     * 详情
     *
     * @return void
     * @author 心如止水
     * @date 2021-11-29
     */
    public function new_info($id='')
    {
        $info=db('news')->where(['id'=>$id])->find();
        $this->assign('info',$info);
        return $this->fetch();
    }

}